<template>
  <div class="family-tree-container">
    <el-card>
      <div slot="header">
        <span>族谱管理</span>
      </div>
      <div class="content">
        <el-row :gutter="20">
          <el-col :span="8">
            <el-card shadow="hover" class="feature-card">
              <div slot="header">
                <i class="el-icon-s-operation"></i>
                族谱编辑器
              </div>
              <p>可视化编辑族谱结构，支持拖拽操作</p>
              <el-button type="primary" @click="$router.push('/familytree/editor')">
                进入编辑器
              </el-button>
            </el-card>
          </el-col>
          <el-col :span="8">
            <el-card shadow="hover" class="feature-card">
              <div slot="header">
                <i class="el-icon-s-data"></i>
                族谱树视图
              </div>
              <p>树形结构展示族谱关系</p>
              <el-button type="primary" @click="$router.push('/familytree/tree')">
                查看树形图
              </el-button>
            </el-card>
          </el-col>
          <el-col :span="8">
            <el-card shadow="hover" class="feature-card">
              <div slot="header">
                <i class="el-icon-s-marketing"></i>
                统计分析
              </div>
              <p>族谱数据统计和分析</p>
              <el-button type="primary" @click="$router.push('/familytree/stats')">
                查看统计
              </el-button>
            </el-card>
          </el-col>
        </el-row>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'FamilyTreeIndex'
}
</script>

<style scoped>
.family-tree-container {
  padding: 20px;
}

.feature-card {
  text-align: center;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card .el-card__header {
  background: #f5f7fa;
  font-weight: bold;
}

.feature-card p {
  color: #666;
  margin: 20px 0;
}
</style> 